package com.reliable.api.param.source;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;


/**
 * @author yuyantao
 * ClassName: SourceSaveParam
 * date: 2025/7/18 10:22
 */
@Data
public class SourceSaveParam {

    /**
     * 任务id
     */
    @ApiModelProperty(value = "任务id", position = 1)
    @NotNull
    private Long taskId;

    /**
     * 文件名
     */
    @ApiModelProperty(value = "文件名", position = 5)
    @NotBlank
    private String filename;

    /**
     * 大小
     */
    @ApiModelProperty(value = "大小", position = 6)
    @NotBlank
    private Long size;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", position = 7)
    @NotBlank
    private String description;

    /**
     * 类型：1.数据库 2.源代码
     */
    @ApiModelProperty(value = "类型：1.数据库 2.源代码 ", position = 8)
    @NotNull
    private Integer types;

}
